
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>errors · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="definition.html" />
    
    
    <link rel="prev" href="log.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    概览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    快速入门
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../guides/project.html">
            
                <a href="../guides/project.html">
            
                    
                    项目结构和初始化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../guides/api.html">
            
                <a href="../guides/api.html">
            
                    
                    API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../guides/doc.html">
            
                <a href="../guides/doc.html">
            
                    
                    生成 API 文档
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../guides/client.html">
            
                <a href="../guides/client.html">
            
                    
                    生成客户端
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    概念
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../concepts/cp.html">
            
                <a href="../concepts/cp.html">
            
                    
                    Consumer && Producer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../concepts/operator.html">
            
                <a href="../concepts/operator.html">
            
                    
                    Operator
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../concepts/filter.html">
            
                <a href="../concepts/filter.html">
            
                    
                    Filter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../concepts/prefab.html">
            
                <a href="../concepts/prefab.html">
            
                    
                    Prefab
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../concepts/modifier.html">
            
                <a href="../concepts/modifier.html">
            
                    
                    Modifier
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../concepts/middleware.html">
            
                <a href="../concepts/middleware.html">
            
                    
                    Middleware
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../concepts/context.html">
            
                <a href="../concepts/context.html">
            
                    
                    Context
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../concepts/source.html">
            
                <a href="../concepts/source.html">
            
                    
                    Parameter Generator
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="../concepts/destination.html">
            
                <a href="../concepts/destination.html">
            
                    
                    Destination Handler
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="../concepts/error.html">
            
                <a href="../concepts/error.html">
            
                    
                    错误包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11" data-path="../concepts/method.html">
            
                <a href="../concepts/method.html">
            
                    
                    方法包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12" data-path="../concepts/configurer.html">
            
                <a href="../concepts/configurer.html">
            
                    
                    配置器机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13" data-path="../concepts/plugin.html">
            
                <a href="../concepts/plugin.html">
            
                    
                    插件机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.14" data-path="../concepts/clients.html">
            
                <a href="../concepts/clients.html">
            
                    
                    多客户端整合
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    插件
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../plugins/logger.html">
            
                <a href="../plugins/logger.html">
            
                    
                    系统日志插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../plugins/reqlog.html">
            
                <a href="../plugins/reqlog.html">
            
                    
                    请求日志插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../plugins/metrics.html">
            
                <a href="../plugins/metrics.html">
            
                    
                    监控指标插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../plugins/tracing.html">
            
                <a href="../plugins/tracing.html">
            
                    
                    请求追踪插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../plugins/profiling.html">
            
                <a href="../plugins/profiling.html">
            
                    
                    性能分析插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../plugins/version.html">
            
                <a href="../plugins/version.html">
            
                    
                    版本信息插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../plugins/healthcheck.html">
            
                <a href="../plugins/healthcheck.html">
            
                    
                    健康检查插件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    框架开发者指南
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="start.html">
            
                <a href="start.html">
            
                    
                    准备工作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="log.html">
            
                <a href="log.html">
            
                    
                    log
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.3" data-path="errors.html">
            
                <a href="errors.html">
            
                    
                    errors
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="definition.html">
            
                <a href="definition.html">
            
                    
                    definition
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="method.html">
            
                <a href="method.html">
            
                    
                    definition/method
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="converter.html">
            
                <a href="converter.html">
            
                    
                    operators/converter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="validator.html">
            
                <a href="validator.html">
            
                    
                    operators/validator
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="router.html">
            
                <a href="router.html">
            
                    
                    service/router
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="service.html">
            
                <a href="service.html">
            
                    
                    service
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="nirvana.html">
            
                <a href="nirvana.html">
            
                    
                    nirvana
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="config.html">
            
                <a href="config.html">
            
                    
                    config
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="rest.html">
            
                <a href="rest.html">
            
                    
                    rest
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.13" data-path="utils.html">
            
                <a href="utils.html">
            
                    
                    utils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.14" data-path="command.html">
            
                <a href="command.html">
            
                    
                    cmd/nirvana
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >errors</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="errors-&#x5305;">errors &#x5305;</h1>
<p>errors &#x5305;&#x7C7B;&#x4F3C;&#x4E8E;&#x6807;&#x51C6;&#x5E93;&#x7684; errors &#x5305;&#xFF0C;&#x4F46;&#x662F;&#x63D0;&#x4F9B;&#x4E86;&#x65B9;&#x6CD5;&#x7528;&#x4E8E;&#x751F;&#x6210;&#x683C;&#x5F0F;&#x5316;&#x7684;&#x9519;&#x8BEF;&#x548C;&#x9519;&#x8BEF;&#x5224;&#x65AD;&#x3002;</p>
<p>errors &#x5305;&#x4E2D;&#x5B58;&#x5728;&#x4E09;&#x4E2A;&#x6982;&#x5FF5;&#xFF0C;&#x5206;&#x522B;&#x662F; Builder&#xFF0C;Factory &#x548C; Error&#x3002;&#x5176;&#x4E2D; Builder &#x7528;&#x4E8E;&#x6784;&#x5EFA; Factory&#xFF0C;Factory &#x5219;&#x7528;&#x4E8E;&#x6784;&#x5EFA;&#x7279;&#x5B9A;&#x7684; Error&#x3002;</p>
<p>Factory &#x63A5;&#x53E3;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-comment">// Factory can create error from a fixed format.</span>
<span class="hljs-keyword">type</span> Factory <span class="hljs-keyword">interface</span> {
    <span class="hljs-comment">// Error generates an error from v.</span>
    Error(v ...<span class="hljs-keyword">interface</span>{}) error
    <span class="hljs-comment">// Derived checks if an error was derived from current factory.</span>
    Derived(e error) <span class="hljs-keyword">bool</span>
}
</code></pre>
<p>Error &#x63A5;&#x53E3;&#x5982;&#x4E0B;&#xFF08;&#x8FD9;&#x4E2A;&#x63A5;&#x53E3;&#x5E76;&#x6CA1;&#x6709;&#x663E;&#x5F0F;&#x5B9A;&#x4E49;&#x5728; errors &#x5305;&#x4E2D;&#xFF09;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-keyword">type</span> Error <span class="hljs-keyword">interface</span> {
    error
    Code() <span class="hljs-keyword">int</span>
    Message() <span class="hljs-keyword">interface</span>{}
}
</code></pre>
<p>&#x9996;&#x5148;&#x770B; Facotry &#x7684;&#x4E24;&#x4E2A;&#x65B9;&#x6CD5;&#xFF1A;</p>
<ol>
<li>Error &#x7528;&#x4E8E;&#x4F20;&#x5165;&#x53C2;&#x6570;&#x8F93;&#x51FA;&#x4E00;&#x4E2A;&#x771F;&#x6B63;&#x7684;&#x9519;&#x8BEF;&#x3002;</li>
<li>Derived &#x5219;&#x7528;&#x4E8E;&#x5224;&#x65AD;&#x4E00;&#x4E2A;&#x9519;&#x8BEF;&#x662F;&#x5426;&#x662F;&#x7531;&#x5F53;&#x524D;&#x7684; Factory &#x751F;&#x6210;&#x3002;
&#x8FD9;&#x6837;&#x5C31;&#x80FD;&#x591F;&#x975E;&#x5E38;&#x65B9;&#x4FBF;&#x7684;&#x9519;&#x8BEF;&#x521B;&#x5EFA;&#x548C;&#x9519;&#x8BEF;&#x5224;&#x65AD;&#x4E86;&#x3002;</li>
</ol>
<p>Factory &#x662F;&#x4E00;&#x4E2A;&#x5177;&#x6709;&#x7279;&#x5B9A;&#x7684;&#x9519;&#x8BEF;&#x5DE5;&#x5382;&#xFF0C;&#x751F;&#x6210;&#x7684;&#x9519;&#x8BEF;&#x90FD;&#x5177;&#x6709;&#x4E00;&#x6837;&#x7684;&#x5F62;&#x5F0F;&#xFF08;&#x901A;&#x5E38;&#x662F;&#x6307;&#x5177;&#x6709;&#x76F8;&#x540C; string format&#xFF0C;&#x6BD4;&#x5982; &quot;${user} is not found&quot;&#xFF09;&#x3002;</p>
<p>&#x901A;&#x5E38;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x6709; Factory &#x548C; Error &#x5C31;&#x8DB3;&#x591F;&#x4E86;&#x3002;&#x4F46;&#x662F;&#x4E3A;&#x4E86;&#x8BA9;&#x9519;&#x8BEF;&#x80FD;&#x591F;&#x4EE5; HTTP API &#x7684;&#x5F62;&#x5F0F;&#x5411;&#x5BA2;&#x6237;&#x7AEF;&#x8FD4;&#x56DE;&#xFF0C;&#x6211;&#x4EEC;&#x8FD8;&#x9700;&#x8981;&#x7ED9; Factory &#x52A0;&#x4E0A;&#x4E00;&#x4E9B;&#x9644;&#x52A0;&#x5C5E;&#x6027;&#xFF0C;&#x7528;&#x6765;&#x8868;&#x793A;&#x8FD4;&#x56DE;&#x7684;&#x9519;&#x8BEF;&#x7801;&#x7B49;&#x4FE1;&#x606F;&#x3002;
&#x56E0;&#x6B64;&#x5728; Factory &#x4E4B;&#x4E0A;&#xFF0C;&#x6784;&#x5EFA;&#x4E86; Builder &#x63A5;&#x53E3;&#xFF0C;&#x7528;&#x4E8E;&#x521B;&#x5EFA;&#x5177;&#x6709;&#x4E00;&#x7C7B;&#x7279;&#x5F81;&#x7684; Factory&#xFF08;&#x6BD4;&#x5982;&#x4E00;&#x7C7B;&#x8868;&#x793A; NotFound &#x7684;&#x9519;&#x8BEF;&#xFF09;&#x3002;</p>
<p>Builder &#x63A5;&#x53E3;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-comment">// Builder can build error factories and errros.</span>
<span class="hljs-keyword">type</span> Builder <span class="hljs-keyword">interface</span> {
    <span class="hljs-comment">// Build builds a factory to generate errors with predefined format.</span>
    Build(reason Reason, format <span class="hljs-keyword">string</span>) Factory
    <span class="hljs-comment">// Error immediately creates an error without reason.</span>
    Error(format <span class="hljs-keyword">string</span>, v ...<span class="hljs-keyword">interface</span>{}) error
}
</code></pre>
<p>Builder &#x53EF;&#x4EE5;&#x6784;&#x5EFA;&#x5E26;&#x6709; reason &#x548C; format &#x7684; Factory&#x3002;&#x4E5F;&#x76F4;&#x63A5;&#x63D0;&#x4F9B;&#x4E86; Error &#x65B9;&#x6CD5;&#x7528;&#x4E8E;&#x76F4;&#x63A5;&#x521B;&#x5EFA;&#x51FA; Error&#x3002;</p>
<p>&#x76EE;&#x524D; errors &#x5305;&#x63D0;&#x4F9B;&#x7684; Builder &#x4E3B;&#x8981;&#x662F;&#x4EE5; HTTP &#x72B6;&#x6001;&#x7801;&#x4F5C;&#x4E3A;&#x57FA;&#x7840;&#x7684;&#xFF1A;</p>
<pre><code class="lang-go"><span class="hljs-comment">// These factory builders is used to build error factory.</span>
<span class="hljs-keyword">var</span> (
    BadRequest                   = newKind(<span class="hljs-number">400</span>) <span class="hljs-comment">// RFC 7231, 6.5.1</span>
    Unauthorized                 = newKind(<span class="hljs-number">401</span>) <span class="hljs-comment">// RFC 7235, 3.1</span>
    PaymentRequired              = newKind(<span class="hljs-number">402</span>) <span class="hljs-comment">// RFC 7231, 6.5.2</span>
    Forbidden                    = newKind(<span class="hljs-number">403</span>) <span class="hljs-comment">// RFC 7231, 6.5.3</span>
    NotFound                     = newKind(<span class="hljs-number">404</span>) <span class="hljs-comment">// RFC 7231, 6.5.4</span>
    MethodNotAllowed             = newKind(<span class="hljs-number">405</span>) <span class="hljs-comment">// RFC 7231, 6.5.5</span>
    NotAcceptable                = newKind(<span class="hljs-number">406</span>) <span class="hljs-comment">// RFC 7231, 6.5.6</span>
    ProxyAuthRequired            = newKind(<span class="hljs-number">407</span>) <span class="hljs-comment">// RFC 7235, 3.2</span>
    RequestTimeout               = newKind(<span class="hljs-number">408</span>) <span class="hljs-comment">// RFC 7231, 6.5.7</span>
    Conflict                     = newKind(<span class="hljs-number">409</span>) <span class="hljs-comment">// RFC 7231, 6.5.8</span>
    Gone                         = newKind(<span class="hljs-number">410</span>) <span class="hljs-comment">// RFC 7231, 6.5.9</span>
    LengthRequired               = newKind(<span class="hljs-number">411</span>) <span class="hljs-comment">// RFC 7231, 6.5.10</span>
    PreconditionFailed           = newKind(<span class="hljs-number">412</span>) <span class="hljs-comment">// RFC 7232, 4.2</span>
    RequestEntityTooLarge        = newKind(<span class="hljs-number">413</span>) <span class="hljs-comment">// RFC 7231, 6.5.11</span>
    RequestURITooLong            = newKind(<span class="hljs-number">414</span>) <span class="hljs-comment">// RFC 7231, 6.5.12</span>
    UnsupportedMediaType         = newKind(<span class="hljs-number">415</span>) <span class="hljs-comment">// RFC 7231, 6.5.13</span>
    RequestedRangeNotSatisfiable = newKind(<span class="hljs-number">416</span>) <span class="hljs-comment">// RFC 7233, 4.4</span>
    ExpectationFailed            = newKind(<span class="hljs-number">417</span>) <span class="hljs-comment">// RFC 7231, 6.5.14</span>
    Teapot                       = newKind(<span class="hljs-number">418</span>) <span class="hljs-comment">// RFC 7168, 2.3.3</span>
    UnprocessableEntity          = newKind(<span class="hljs-number">422</span>) <span class="hljs-comment">// RFC 4918, 11.2</span>
    Locked                       = newKind(<span class="hljs-number">423</span>) <span class="hljs-comment">// RFC 4918, 11.3</span>
    FailedDependency             = newKind(<span class="hljs-number">424</span>) <span class="hljs-comment">// RFC 4918, 11.4</span>
    UpgradeRequired              = newKind(<span class="hljs-number">426</span>) <span class="hljs-comment">// RFC 7231, 6.5.15</span>
    PreconditionRequired         = newKind(<span class="hljs-number">428</span>) <span class="hljs-comment">// RFC 6585, 3</span>
    TooManyRequests              = newKind(<span class="hljs-number">429</span>) <span class="hljs-comment">// RFC 6585, 4</span>
    RequestHeaderFieldsTooLarge  = newKind(<span class="hljs-number">431</span>) <span class="hljs-comment">// RFC 6585, 5</span>
    UnavailableForLegalReasons   = newKind(<span class="hljs-number">451</span>) <span class="hljs-comment">// RFC 7725, 3</span>

    InternalServerError           = newKind(<span class="hljs-number">500</span>) <span class="hljs-comment">// RFC 7231, 6.6.1</span>
    NotImplemented                = newKind(<span class="hljs-number">501</span>) <span class="hljs-comment">// RFC 7231, 6.6.2</span>
    BadGateway                    = newKind(<span class="hljs-number">502</span>) <span class="hljs-comment">// RFC 7231, 6.6.3</span>
    ServiceUnavailable            = newKind(<span class="hljs-number">503</span>) <span class="hljs-comment">// RFC 7231, 6.6.4</span>
    GatewayTimeout                = newKind(<span class="hljs-number">504</span>) <span class="hljs-comment">// RFC 7231, 6.6.5</span>
    HTTPVersionNotSupported       = newKind(<span class="hljs-number">505</span>) <span class="hljs-comment">// RFC 7231, 6.6.6</span>
    VariantAlsoNegotiates         = newKind(<span class="hljs-number">506</span>) <span class="hljs-comment">// RFC 2295, 8.1</span>
    InsufficientStorage           = newKind(<span class="hljs-number">507</span>) <span class="hljs-comment">// RFC 4918, 11.5</span>
    LoopDetected                  = newKind(<span class="hljs-number">508</span>) <span class="hljs-comment">// RFC 5842, 7.2</span>
    NotExtended                   = newKind(<span class="hljs-number">510</span>) <span class="hljs-comment">// RFC 2774, 7</span>
    NetworkAuthenticationRequired = newKind(<span class="hljs-number">511</span>) <span class="hljs-comment">// RFC 6585, 6</span>
)
</code></pre>
<p>&#x8FD9;&#x4E2A;&#x5305;&#x65B9;&#x4FBF;&#x4E86;&#x7528;&#x6237;&#x521B;&#x5EFA;&#x80FD;&#x591F;&#x88AB; Nirvana &#x8BC6;&#x522B;&#x7684;&#x9519;&#x8BEF;&#xFF0C;&#x4F46;&#x662F;&#x5982;&#x679C;&#x4E1A;&#x52A1;&#x903B;&#x8F91;&#x4E2D;&#x5982;&#x679C;&#x4E0D;&#x5E0C;&#x671B;&#x5F15;&#x5165;&#x5BF9; errors &#x5305;&#x7684;&#x4F9D;&#x8D56;&#xFF0C;&#x53EF;&#x4EE5;&#x81EA;&#x884C;&#x5B9E;&#x73B0;&#x9519;&#x8BEF;&#x5305;&#xFF0C;&#x53EA;&#x8981;&#x4EA7;&#x51FA;&#x7684;&#x9519;&#x8BEF;&#x7B26;&#x5408; Error &#x63A5;&#x53E3;&#x5373;&#x53EF;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="log.html" class="navigation navigation-prev " aria-label="Previous page: log">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="definition.html" class="navigation navigation-next " aria-label="Next page: definition">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"errors","level":"1.5.3","depth":2,"next":{"title":"definition","level":"1.5.4","depth":2,"path":"topics/definition.md","ref":"topics/definition.md","articles":[]},"previous":{"title":"log","level":"1.5.2","depth":2,"path":"topics/log.md","ref":"topics/log.md","articles":[]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"zh-hans","gitbook":"*"},"file":{"path":"topics/errors.md","mtime":"2019-08-06T09:48:58.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-10-20T10:33:16.586Z"},"basePath":"..","book":{"language":"zh-hans"}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

